package com.asura.ops.sync.sdk.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author: zouyang
 * @date: 2022/8/4
 * @description: 客户端SDK配置
 */
@Configuration
public class CfgClientProperties {
    @Value("${asura.ops.sync.client.code:ops}")
    private String clientCode;
    @Value("${asura.ops.sync.refresh.cfg.seconds:30}")
    private Integer refreshCfgClientSeconds;
    @Value("${asura.ops.sync.concurrentConsumers:1}")
    private Integer concurrentConsumers;
    @Value("${asura.ops.sync.maxConcurrentConsumers:5}")
    private Integer maxConcurrentConsumers;

    public String getClientCode() {
        return clientCode;
    }

    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }

    public Integer getRefreshCfgClientSeconds() {
        return refreshCfgClientSeconds;
    }

    public void setRefreshCfgClientSeconds(Integer refreshCfgClientSeconds) {
        this.refreshCfgClientSeconds = refreshCfgClientSeconds;
    }

    public Integer getConcurrentConsumers() {
        return concurrentConsumers;
    }

    public void setConcurrentConsumers(Integer concurrentConsumers) {
        this.concurrentConsumers = concurrentConsumers;
    }

    public Integer getMaxConcurrentConsumers() {
        return maxConcurrentConsumers;
    }

    public void setMaxConcurrentConsumers(Integer maxConcurrentConsumers) {
        this.maxConcurrentConsumers = maxConcurrentConsumers;
    }
}
